export const capValue = (min, value, max) =>
  Math.max(min, Math.min(value, max));